{% extends "base/base_index.html" %}
{% block main %}
<div class="panel-group" id="accordion">
  <form method="post">
  <div class="panel panel-default">
    <div class="panel-heading">
      <h4 class="panel-title">
        <a data-toggle="collapse" data-toggle="collapse" data-parent="#accordion" href="#collapseOne">
          基本资料
        </a>
      </h4>
    </div>
    <div id="collapseOne" class="panel-collapse collapse in">
      <div class="panel-body">
    <table class="table">
        {{userProfileForm.as_table}}
    </table>
      </div>
    </div>
  </div>
  <div class="panel panel-default">
    <div class="panel-heading">
      <h4 class="panel-title">
        <a data-toggle="collapse" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo">
          扩展信息
        </a>
      </h4>
    </div>
    <div id="collapseTwo" class="panel-collapse collapse">
      <div class="panel-body">
    <table class="table">
        {{userInfoForm.as_table}}
    </table>
      </div>
    </div>
  </div>
  <div class="panel panel-default">
    <div class="panel-heading">
      <h4 class="panel-title">
        <a data-toggle="collapse" data-toggle="collapse" data-parent="#accordion" href="#collapseThree">
          论坛设置
        </a>
      </h4>
    </div>
    <div id="collapseThree" class="panel-collapse collapse">
      <div class="panel-body">
    <table class="table">
        {{userSettingForm.as_table}}
    </table>
      </div>
    </div>
  </div>

    <button type="submit" class="btn btn-primary">保存</button>
  </form>
</div>

<!--<ul class="nav nav-tabs" id="myTab">-->
  <!--<li class="active"><a href="#home" data-toggle="tab">基本资料</a></li>-->
  <!--<li><a href="#profile" data-toggle="tab">联系方式</a></li>-->
  <!--<li><a href="#messages" data-toggle="tab">论坛设置</a></li>-->
  <!--<li><a href="#settings" data-toggle="tab">签名</a></li>-->
<!--</ul>-->
<!--<div class="tab-content">-->
  <!--<div class="tab-pane active" id="home">-->
    <!--{{ userProfileForm.media }}-->
    <!--<table class="table">-->
        <!--{{userProfileForm.as_table}}-->
        <!--<tr>-->
            <!--<td><button type="submit" class="btn btn-primary">提交</button></td><td></td>-->
        <!--</tr>-->
    <!--</table>-->
  <!--</div>-->
  <!--<div class="tab-pane" id="profile">2-->

  <!--</div>-->
  <!--<div class="tab-pane" id="messages">3-->

  <!--</div>-->
  <!--<div class="tab-pane" id="settings">4-->

  <!--</div>-->
<!--</div>-->


{% endblock %}
